/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;
import java.sql.Connection;
import java.util.HashMap;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperPrintManager;
/**
 *
 * @author Java
 */
public class GerarRelatorio {
    
    public JasperPrint gerar(){
        JasperPrint rel = null;
        try {
     //   Connection banco = new BancoDao();
        BancoDao con = new BancoDao();
        HashMap map = new HashMap();
        String arquivoJasper = "Usuario.jasper";
        rel = JasperFillManager.fillReport(arquivoJasper, map, con.MySql());
        } catch (Exception e) {
        }
    return rel;
    }
    
}
